@import '~@/theme.less';

.attr-liability-item {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 12px;
  overflow: hidden;
  transition: padding 200ms ease-out;

  .del-line {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    transition: margin 200ms ease-out;

    > * {
      margin-right: 16px;

      &:last-child {
        margin-right: 0;
      }
    }

    .title {
      font-size: 12px;
      line-height: 16px;
      color: #666;
      text-align: left;
      padding: 4px 8px;
    }

    padding: 8px 12px;
    margin: -12px -12px 16px;
    text-align: right;
    border-bottom: 1px solid #eee;

    .del-btn {
      color: @error-color;
    }
  }

  &.collapsed {
    .del-line {
      margin-bottom: -1px !important;
    }

    padding-bottom: 0;
  }
}

.formula-input {
  cursor: pointer;
}

.duty-rule {
  margin-top: 16px;
}

.upload-box :global {
  padding-bottom: 16px;

  .ant-upload-list-text {
    display: inline-block;
    vertical-align: top;
  }
}

.exemption-transfer :global .ant-transfer-list {
  flex: 1;
}
